#ifndef __FishingJoy__RollNum__
#define __FishingJoy__RollNum__

#include <iostream>
#include "cocos2d.h"

class GameLayer;

class RollNum : public cocos2d::Sprite
{
public:
    RollNum();
    virtual ~RollNum();
    CREATE_FUNC(RollNum);
    CC_SYNTHESIZE(bool, m_bUp, UpDirection);
    
    void setNumber(int var, bool bUp);
    int getNumber();
private:
    bool init();
    int m_nNumber;
    int m_nCurTexH;
    int m_nEndTexH;
    bool m_bRolling;
    cocos2d::Texture2D *m_pTexture;
    void updateNumber(float dt);
};
#endif 
